package com.fjxd.order.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fjxd.feign.pojo.FlightNumber;
import com.fjxd.feign.pojo.People;
import com.fjxd.feign.pojo.Ticket;
import com.fjxd.order.pojo.vo.OrderVo;
import com.fjxd.order.pojo.vo.TicketVo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author csw
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_order")
public class Order {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private Integer userId;
    private Integer ticketId;
    private String orderTime;
    private String ticketType;
    private double orderMoney;
    private Integer orderStatus;
    private double discountsPrice;
    private double ticketPrice;
    private boolean isCredits;
    @TableField(exist = false)
    private List<OrderVo> orderVo;
    @TableField(exist = false)
    private List<TicketVo> ticketVo;
    @TableField(exist = false)
    private List<FlightNumber> flightNumber;

}
